package com.habitsoft.glassfish.dashboard.client;

import java.io.Serializable;

public class JvmStats implements Serializable {
    private static final long serialVersionUID = -324526207026731217L;
    
    long maxHeapSize;
    long heapSize;
    
    MemoryPoolInfo[] memoryPools;
    
    int loadedClassCount;
    int threadCount;
    int daemonThreadCount;
    
    public JvmStats() {
    }
    
    public JvmStats(long maxHeapSize, long heapSize, int loadedClassCount, int threadCount, int daemonThreadCount, MemoryPoolInfo[] memoryPools) {
        this.maxHeapSize = maxHeapSize;
        this.heapSize = heapSize;
        this.loadedClassCount = loadedClassCount;
        this.threadCount = threadCount;
        this.daemonThreadCount = daemonThreadCount;
        this.memoryPools = memoryPools;
    }
    
    public long getMaxHeapSize() {
        return maxHeapSize;
    }
    public void setMaxHeapSize(long maxHeapSize) {
        this.maxHeapSize = maxHeapSize;
    }
    public long getHeapSize() {
        return heapSize;
    }
    public void setHeapSize(long heapSize) {
        this.heapSize = heapSize;
    }
    public int getLoadedClassCount() {
        return loadedClassCount;
    }
    public void setLoadedClassCount(int loadedClassCount) {
        this.loadedClassCount = loadedClassCount;
    }
    public int getThreadCount() {
        return threadCount;
    }
    public void setThreadCount(int threadCount) {
        this.threadCount = threadCount;
    }
    public int getDaemonThreadCount() {
        return daemonThreadCount;
    }
    public void setDaemonThreadCount(int daemonThreadCount) {
        this.daemonThreadCount = daemonThreadCount;
    }

    public MemoryPoolInfo[] getMemoryPools() {
        return memoryPools;
    }

    public void setMemoryPools(MemoryPoolInfo[] memoryPools) {
        this.memoryPools = memoryPools;
    }
    
    
}
